package com.wym.lottery.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Bill {

	private int id;
	//销售金额
	private String sell_money;
	//日期
	private String date;
	//期号
	private String scope;
	//中奖金额
	private String pay_money;
	//类型说明，值可能有"四码","三定","二定","四现","三现","二现"这六种可能
	private String type_sm;
	//类别，预留字段
	private String type;
	//开奖号码
	private String win_number;
	
	//向数据库中插入时的构造方法
	public Bill(String scope,String win_number) {
		super();	
		this.scope = scope;
		this.win_number=win_number;
		this.date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
	}

	//展示数据时候用的构造方法
	public Bill(String scope, String type_sm, String sell_money, String pay_money) {
		super();
		this.sell_money = sell_money;
		this.scope = scope;
		this.pay_money = pay_money;
		this.type_sm = type_sm;
		this.date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
	}

	public String getSell_money() {
		return sell_money;
	}

	public String getDate() {
		return date;
	}

	public String getScope() {
		return scope;
	}

	public String getPay_money() {
		return pay_money;
	}

	/*public String getType() {
		return type;
	}*/

	public String getWin_number() {
		return win_number;
	}

	public String getType_sm() {
		return type_sm;
	}

	
}
